package org.xiaom.butler.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.google.gson.annotations.Since;
/**
 * 显示条目。
 * 
 * @author XM
 * 
 */
public class Department implements Serializable{
	private Integer id;
	private String chName;
	private String engName;
	private Integer displayIndex;
	private String imagePath;
	@Since(100)
	// 永远不出现在Json中
	private Hotel hotel;
	
	public static final String table_name="department";
	public static final String id_ = "id_";
	public static final String ch_name = "ch_name";
	public static final String eng_name = "eng_name";
	public static final String image_path = "image_path";
	public static final String display_index = "display_index";
	public static final String hotel_id = "hotel_id";
	private List<Content> contents=new ArrayList<Content>();

	public Department() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getChName() {
		return chName;
	}

	public void setChName(String chName) {
		this.chName = chName;
	}

	public String getEngName() {
		return engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

	public Integer getDisplayIndex() {
		return displayIndex;
	}

	public void setDisplayIndex(Integer displayIndex) {
		this.displayIndex = displayIndex;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public Hotel getHotel() {
		return hotel;
	}

	public void setHotel(Hotel hotel) {
		this.hotel = hotel;
	}

	public List<Content> getContents() {
		return contents;
	}

	public void setContents(List<Content> contents) {
		this.contents = contents;
	}

	@Override
	public String toString() {
		return "DisplayItem [id=" + id + "]";
	}

}
